package com.linkhub.oms.admin.modules.satoken.authorization;

import cn.dev33.satoken.stp.StpInterface;
import com.google.common.collect.Lists;
import com.linkhub.oms.admin.modules.satoken.session.LhSessionContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description: StpInterface
 * @Author: echo
 * @Date: 2024/3/7 22:32
 * @Version: 1.0
 */
@Slf4j
@Component
public class UserAuthorizationDao implements StpInterface {
    @Override
    public List<String> getPermissionList(Object loginId, String loginType) {
        return Lists.newArrayListWithCapacity(0);
    }

    @Override
    public List<String> getRoleList(Object loginId, String loginType) {
        return LhSessionContext.getUserRoles(loginId);
    }
}
